package org.hawk.gwt.ppc.parser;

import org.hawk.gwt.ppc.utils.PreprocessorException;

/**
 * Visitor for java AST.
 * 
 * @author alex.bereznevatiy@gmail.com
 * @see Descriptor#visit(DescriptorVisitor)
 */
public interface DescriptorVisitor {
	
	/**
	 * When passing instance of this interface to Descriptor#visit(DescriptorVisitor) it is guaranteed that
	 * this method will be call once for each descriptor in abstract syntax tree.
	 * @throws PreprocessorException 
	 */
	void visit(Descriptor descriptor) throws PreprocessorException;
}
